<script type="text/ng-template" id="template-admin-add.html">
    <h4>
      <a class="btn btn-default btn-sm" href="#/admin/all" title="返回管理员列表"><i class="fa fa-angle-left"></i> 返回</a>
       添加管理员账号
    </h4>

    <hr>

    <form class="form-horizontal">
      <div class="form-group">
        <label class="col-sm-2 control-label">管理员账号名</label>
        <div class="col-sm-4">
          <input type="text" class="form-control" ng-model="newAdmin.username" placeholder="账号名">
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">密码</label>
        <div class="col-sm-4">
          <input type="text" class="form-control" ng-model="newAdmin.password" placeholder="在这里输入密码">
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">分配权限</label>
        <div class="col-sm-4">
          <select class="form-control" ng-model="newAdmin.typecode">
            <option value="0">普通管理员</option>
            <option value="1">超级管理员</option>
          </select>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-offset-2 col-sm-4">
          <button class="btn btn-success" ng-disabled="!(newAdmin.username && newAdmin.password)" ng-click="submitAdd()">完成</button>
           &nbsp;&nbsp;&nbsp;
          <a href="#/admin/all" title="取消">取消</a>
        </div>
      </div>
    </form>
</script>


